/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.domain;

import commonlib.domain.Dictionary;
import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author marc.mauri
 */
public class NominalizatorDictionary extends Dictionary {

    private String languageName;
    private String type;

    public NominalizatorDictionary() {
        super();
    }

    public NominalizatorDictionary(String languageName, String type) {
        this.languageName = languageName;
        this.type = type;
    }

    public void setLanguageName(String languageName) {
        this.languageName = languageName;
    }

    public String getLanguageName() {
        return languageName;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void mergeDictionary(Dictionary dv) {
        ArrayList<String> als = dv.getAllDiccionary();
        Iterator<String> iterator = als.iterator();
        while (iterator.hasNext() ) {
            this.addWord(iterator.next() );
        }
    }

}
